/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Frmseccion.java
 *
 * Created on 18/02/2011, 10:14:53 PM
 */

package interfaz1;

/**
 *
 * @author CLIENTE
 */
public class Frmseccion extends javax.swing.JFrame {

    /** Creates new form Frmseccion */
    public Frmseccion() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblopsec = new javax.swing.JLabel();
        lblnumsec = new javax.swing.JLabel();
        txtnumsec = new javax.swing.JTextField();
        btnsecguardar = new javax.swing.JButton();
        btnseccancelar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Crear Seccion");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        lblopsec.setFont(new java.awt.Font("Bookman Old Style", 1, 12));
        lblopsec.setText("Operaciones de la Seccion");
        getContentPane().add(lblopsec, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 30, 210, 20));

        lblnumsec.setFont(new java.awt.Font("Bookman Old Style", 0, 11));
        lblnumsec.setText("Numero de la Seccion:");
        getContentPane().add(lblnumsec, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 90, 140, 20));
        getContentPane().add(txtnumsec, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 90, 40, -1));

        btnsecguardar.setText("Guardar");
        btnsecguardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnsecguardarActionPerformed(evt);
            }
        });
        getContentPane().add(btnsecguardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 170, -1, -1));

        btnseccancelar.setText("Cancelar");
        btnseccancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnseccancelarActionPerformed(evt);
            }
        });
        getContentPane().add(btnseccancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 170, -1, -1));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-390)/2, (screenSize.height-313)/2, 390, 313);
    }// </editor-fold>//GEN-END:initComponents

    private void btnseccancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnseccancelarActionPerformed
        // TODO add your handling code here:
        Frmseccion frmsec = new Frmseccion();
        FrmPrincipal frmprin = new FrmPrincipal();
        frmprin.show();
    }//GEN-LAST:event_btnseccancelarActionPerformed

    private void btnsecguardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnsecguardarActionPerformed
        // TODO add your handling code here:
        FrmOperacionesseccion frmopsec = new FrmOperacionesseccion();
       if (txtnumsec.getText().equals(""))
       {
           
       }
 else
       {
            
 }
        frmopsec.show();
        dispose();
    }//GEN-LAST:event_btnsecguardarActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Frmseccion().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnseccancelar;
    private javax.swing.JButton btnsecguardar;
    private javax.swing.JLabel lblnumsec;
    private javax.swing.JLabel lblopsec;
    private javax.swing.JTextField txtnumsec;
    // End of variables declaration//GEN-END:variables

}
